package com.example.xuitest.fragment;


import android.widget.LinearLayout;

import com.example.xuitest.R;
import com.example.xuitest.base.BaseFragment;
import com.example.xuitest.util.Utils;
import com.xuexiang.xpage.annotation.Page;
import com.xuexiang.xui.widget.textview.supertextview.SuperTextView;

import butterknife.BindView;

@Page(name = "我的")
public class MyInfoFragment extends BaseFragment {


    @BindView(R.id.setting_center)
    SuperTextView settingCenter;
    @BindView(R.id.about_weibo)
    SuperTextView aboutWeibo;
    @BindView(R.id.myinfo_segment)
    LinearLayout myinfoSegment;

    @Override
    protected int getLayoutId() {
        return R.layout.fragment_my_info;
    }

    @Override
    protected void initViews() {
        settingCenter.setOnSuperTextViewClickListener(new SuperTextView.OnSuperTextViewClickListener() {
            @Override
            public void onClickListener(SuperTextView superTextView) {
                openPage("设置");
            }
        });



        aboutWeibo.setOnSuperTextViewClickListener(new SuperTextView.OnSuperTextViewClickListener() {
            @Override
            public void onClickListener(SuperTextView superTextView) {
                Utils.goWeb(superTextView.getContext(), "https://weibo.com/u/6014382935/home");
            }
        });
    }

    @Override
    protected void initListeners() {

    }
}
